Explicitly validate namespaces

I made some simple changes to the namespace_cleaner_spec to explicitly validate the resultant namespaces. The previous version of the spec would fail because the string lengths were off for a few bytes.