Replace all ~"" with "".to_owned()

Continues https://github.com/mozilla/rust/pull/13548