Fix form field encoding in multipart middleware