Fix #16986: file_download.php adds buffer trash to file contents