allow Utils.default_uri_parser to take a URI object that responds to #parse