normalize_uri and path fix