tom: support multipart POSTs by converting to base64