Make tests pass under MRI 1.9.3, Rubinius and jruby

This removes keyword arguments and fixes an encoding issue to make the tests pass on MRI 1.9.3, Rubinius 2.2.2 and jruby 1.7.9.