utility to determine the Japanese encoding of text files