Test EncodedSring#to_s for undefined conversion / invalid byte sequence

Related to https://github.com/rspec/rspec-core/pull/1760
s/replacment/replacement/