allow etree.tostring encoding to be set