Converts a string URL to a URL object.
the converted URL object
the URL string to be converted
if the URL string is malformed