Fix RDF export to produce valid RDF/XML.