[FIX] Encode XMLGen output as UTF8