Fixed XML file not open in binary mode