Revert "[FIX] Encode XMLGen output as UTF8"

This reverts part of commit cebe43f8e29e102ff71fc58a39a24bb0a5d3e15e.