$csv_file = fopen("barvaz/barvazon.csv", 'w') or die("can't create bar baz");
fwrite($csv_file, "\xEF\xBB\xBF");
fwrite($csv_file, "\xEF\xBB\xBF");
Points regarding computing that I always forget - so I write them here to find them easily and maybe other could benefit too.