Test EncodedSring#to_s for undefined conversion / invalid byte sequence

Related to https://github.com/rspec/rspec-core/pull/1760
actually, we get it on Ruby 1.9.2, so we need it as long as we support that.