Respond correctly to CSV download requests