Fix utf8 characters in field values

For a completely unknown reason, we need to encode the texoptions in
ascii before processing them.