fix invalid characters in multipart uploads