Fix some deprecated warnings for to_owned()
Merge pull request #40 from mozilla-servo/string-warn

Fix some deprecated warnings for to_owned()