Circumventing lxml bug for xml sanitization