Replace ~"string" with "string.to_owned()", except in fail!, where it wa...

...s changed to "string"