Fix the problem with encoding
Merge pull request #1 from Noein/fix

Fix the problem with encoding