fix wrong text econding bug when using non-iso charater.
Merge pull request #139 from dennischen/master

fix wrong text encoding bug when using non-iso character.