Commit 9524b75e5b634b15ddff2a4a00025c1911ba2add

Add missing binmode() [RT#39668]

During the refactoring in 5.815 we lost the binmode() when sending
content directly to files.
  
102102 }
103103 elsif (!ref($arg) && length($arg)) {
104104 open(my $fh, ">", $arg) || die "Can't write to '$arg': $!";
105 binmode($fh);
105106 push(@{$response->{handlers}{response_data}}, sub {
106107 print $fh $_[3] || die "Can't write to '$arg': $!";
107108 1;