fix for older lxml versions that misbehave when making elements and passing utf8 strings