Make XML valid again