mozilla/rust — pull request #12098 by kballard (2014-02-07 23:27:40+00:00)
Title: Tweak from_utf8_lossy to return a new MaybeOwned enum

MaybeOwned allows from_utf8_lossy to avoid allocation if there are no
invalid bytes in the input.