fix encoding for string with \\
Merge pull request #7 from parroty/fix

fix encoding for string with \\