Logic in miner/views.py at lnie 452+ handles unicode errors in writing to CSV