Improve deserialization of URL