Fixed response encoding for PDF files