Fix ISO-2022-JP encoding detection.

The `EscCharSetProber` class was quite buggy, and I got error when testing for files with ISO-2022-JP encoding. This have fixed it at least for the files I tested here.