Please use URIUtils::HasSlashAtEnd() here instead.