Handle CSV preview issue

This improves the handling of badly encoded CSV files so it fails more
gracefully when encountering dodgy characters.
Mark non-public methods as private
Merge pull request #1655 from alphagov/csv-preview-robustness

Handle CSV preview issue