Use parse() instead of deprecated from_str()
Merge pull request #489 from serpis/use_parse

Use parse() instead of deprecated from_str()