Using a constrained Name for namespaces names

This is in preparation of the `DirPath/FilePath` update.
Related to comment earlier, but we can't do this in the mr job.