Test EncodedSring#to_s for undefined conversion / invalid byte sequence

Related to https://github.com/rspec/rspec-core/pull/1760
This `rescue` clauses uses different formatting for the `string.encode` arguments.  Do you mind sticking with a consistent formatting for that?