This gem will helps you identify lines and characters of the text which are invalid for particular encoding
Pavel Forkert
N/A