In to_uri, if there are not components, return "/".