Fix encoding issues on xml output of preinfo.