Fix Travis CI and replace .to_str() by .to_string()

Sorry all the commits are jumbled up, I kinda needed the previous ones to do anything.

I've got everything compiling successfully, but the build still fails because of some test cases:

https://travis-ci.org/michaelsproul/cookie/builds/30331094