So..if you are sending files for download to a browser, remember to surround the file name with quotes.
This response works correctly to download a file in Firefox:
pageResponse.setHeader(“Content-Disposition”,”attachment; filename=” + ‘”‘ + fileName + ‘”‘);
This one does not:
pageResponse.setHeader(“Content-Disposition”,”attachment; filename=” + fileName);
That is all.