Improved performance using native fputcsv function to write RFC compliant files.