Fix some deprecated warnings for to_owned()
Merge pull request #30 from Manishearth/string-warn

Fix some deprecated warnings for to_owned()