Fix "URI::InvalidURIError: bad URI" when passing non ascii characters in
field name