only encode string parameters to utf8