Fixes the XML for adding it in to the TEI header