Avoid passing in Unicode to lxml

It will sometimes complain by raising a ValueError.