correct namespaced serialization to respect case of tag names