Align multipart boundary handling with RFC 2046 (#11674)