Handle unicode nastiness when encoding params