simplify locale detection a bit, no need to call it from Xml_Read in main..