workaround for encoding issue due to usage of ruby 1.9
Merge pull request #2 from cmingxu/master

workaround for encoding issue due to usage of ruby 1.9