allow override of etree.tostring method