As value.getBegin() already managed by makeShared19(), the method
byteSubstr() need not take it into account.
Fix RubyString#byteslice on substring.
Testing locally before merge.
I'm running into this on 1.7.4 (I think it's triggered by Nokogiri), is there any way I could do anything to work around it until 1.7.5 is released? I.e. without compiling a custom build of JRuby. Would it be possible to monkey patch from within a ruby script?
I know particularly where this happens for me and it's only in one place, so I can catch the exception etc.