I'm using 1.9 mode of latest JRuby on Windows. When rstrip applied to utf-8 string with unicode char at the end it brokes string, removing one byte from the end. On MRI Ruby 1.9.2 it works as expected.
I put minitest-bases test in attachment. If you doesn't accept minitest - write please which test framework should I use.