PDF文件无法下载,报出Response header name 'Content-Disposition:' contains invalid characters.

只有Tomcat8.5.20时是可以下载PDF/CSV/TEXT文件的,
但在导入Apache2.4后,CSV/TEXT文件可以继续下载,但PDF文件无法下载,后台报出Response header name 'Content-Disposition:' contains invalid characters的错误信息。

//PDF文件(无法下载)
response.setContentType("application/pdf; charset=UTF-8");
response.setHeader("Content-Disposition", "attachment;filename="+filename);

//CSV文件(正常下载)
response.setContentType("application/x-msdownload; charset=UTF-8");
response.setHeader("Content-Disposition", "attachment;filename="+filename);

//TEXT文件(正常下载)
response.setContentType("text/plain");
response.setHeader("Content-Disposition", "attachment;filename="+filename);

通过修改httpd.conf文件,追加HttpProtocolOptions Unsafe可以解决这个问题,
但apache官网由于存在安全风险,并不推荐这么设置。
http://httpd.apache.org/docs/current/en/mod/core.html

求教:除了HttpProtocolOptions Unsafe设置外,可还有好的解决方案?