Substring encoding

add a spec to make sure that ascii substrings that originate from binary strings can be utf-8 encoded without an exception in jruby.