Replace space with underscore in namespace links

 * Adds a test that fails the same as "Link to namespaces".

Bug: 64750
Change-Id: Iec9f1f0bc9fa73250c35f48df72e92fe3e7c396b