Encode XML to UTF8 before parsing