fix string encoding issue to work with ruby1.9
Merge pull request #15 from jasonaowen/master

fix string encoding issue to work with ruby1.9