(#1540) - use url library to parse uris