Replace to_str() by to_string()

Also had to rework `from_rfc_compliant` a bit due to the liburl API change.
Fix Travis CI build.