test: Remove all uses of `~str` from the test suite.
auto merge of #14166 : pcwalton/rust/detildestr-tests, r=alexcrichton

r? @alexcrichton