Change Namespace::to_str() to not allocate, return a reference instead.

Also rename Element::get_namespace to get_namespace_url.