xml utf-8 workaround for python 2