Jruby 1.7.17

this needs some fixes on the jruby side so it is still WIP

until jruby fixes things we are stuck with jruby-1.7.12
the workaround is to set UTF-8 as default for ruby IO

the uppercase is needed for the compare the rest does not matter.