[url] Account for bad IRI edge case

Closes #447