Fix bug when importing files encoded in UTF-8 with Byte Order Mark