Updated 0.11 compatibility. See long commit message for details.

* Updated to_str to to_string where necessary
* changed args.get(0) to args[0] as the former is deprecated
* changed to_owned to to_vec as the former is deprecated

All tests pass.