[encoding] [jruby] add a spec to make sure that ascii substrings of binary string can be utf-8 encoded without an exception in jruby