JRuby

[1.9] String.rstrip brokes UTF-8 string.