support for unicode chars and more test cases.
Merge pull request #2 from layerssss/master

fails when converting unicode chars.