Change to pass tests.
Merge pull request #1 from moznion/fix/characters_encode

Fix the problem about character code