Fix encoded basic auth values being decoded

When a database was specified in the URL as a path component, the basic auth would get decoded and never reencoded. This would cause future operations to fail as the url parsing would come against characters invalid in a URL.