Fixed BOM bug reading UTF-8 files