fixing a bug where one too many newlines would be in the multipart form upload