encode unicode params as utf8