Check input file encoding.