Support Japanese encodings.
Merge pull request #2078 from mtfuji/master

Support Japanese encodings.