Use str.to_owned() in tests.
auto merge of #2316 : Ms2ger/servo/owned-str-tests, r=jdm