Fixes #1198. Strings not printed properly to windows console
Merge with jruby-1_7