let normseg_of_uri uri = normseg_of_path uri.path