Handle null strings in Namespace::new.

This also avoids a string copy in the rare case of an unrecognized namespace.