- proper sorting of query pages in CSV
- added UTF-8 preamble to CSV because Excel :/
- converted line breaks to spaces in CSV cell values because Excel :/