JRuby

Fix performance issue with String#[Fixnum] on encoded strings