correct encoding info in the header of the xml