Broken pipe error when uploading to a S3 clone, a pdf with a name containing é,ï etc

Line 62 of discourse/lib/file_store/s3_store.rb at main · discourse/discourse · GitHub

options[:content_disposition] = "attachment; filename=\"#{filename}\""

the content disposition should perhaps be formated

options[:content_disposition] = ActionDispatch::Http::ContentDisposition.format(
        disposition: "attachment", filename: upload.filename
      )

as in

if so, maybe these content_disposition too:

4 „Gefällt mir“