Work around to a known PHP problem with parsing Mac files, see PHP docs on fgetcsv() for more information.
- Add ini_set('auto_detect_line_endings', TRUE) before opening file and ini_set('auto_detect_line_endings', FALSE) after closing file.