Fix 1.9 encoding issues on jruby
Merge pull request #25 from atambo/master

Fix 1.9 encoding issues on jruby