improve GuessKanjiEncoding