fix unicode issue in dict to xml routine