made the second argument to normalize_uri optional