Better written as `contents.starts_with("\ufeff")` (or `contents.as_bytes().starts_with([0xEF, 0xBB, 0xBF])`).