Manually create the CSV instead of using fputcsv()