i took another look, this change alone wont fox the whole thing,

the xml/htmlbuilder needs to be reworked completely to work with bytes/encodings