how to detect invalid utf8 unicode/binary in a text file how to detect invalid utf8 unicode/binary in a text file linux linux