Encoding fix for .xml reading