encode utf8 params of dancer2 test