fix encode error
Merge pull request #3 from aisk/master

fix encode error