Fix deprecation warnings with latest rust nightly

- from_str() -> parse()
- into_string() -> to_owned()