fix the bug of encoding
Merge pull request #58 from caok/master

	fix the bug of encoding