Changed behavior when using encoding to not fail on improperly encoded
text.