Workaround for PHP/MySQL bugs with LOAD DATA LOCAL INFILE