pass null userinfo instead of empty string to avoid prepending an @ to the URI