Ensuring trailing slash on namespaces to match endpoints