encode params in multipart post