Make sure to transform fields to string before multipart_encode