Enforce prefix requirements

We already discussed how namespace prefixes should terminate in `\`, but this is not 100% clear in the spec.