fixed a regex parsing bug with multipart data