normalize entity ID when expose_namespace is set