Improved BOM handling for UTF-16LE files