Use safe encoding during csv creation as well
Use customized default error message