now removes username, password, and port number from url