JRuby

Ascii or UTF-8 Encoding ascii substrings that originated from binary string causes an exception to be thrown.