Handle query params for csv/tsv downloads