Fix some Ruby encoding conversion problems
Merge pull request #130 from phusion/master

Fix some Ruby encoding conversion problems