[encoding] [jruby] add a spec to make sure that ascii substrings of binary string can be utf-8 encoded without an exception in jruby
Merge remote-tracking branch 'jvshahid/substring_encoding'

Conflicts:
	core/string/encode_spec.rb
Fixed spec description and style.