The file encoding detection function now handles expected filesystem errors (ENOENT, EACCES, EPERM) gracefully with a debug-level log message instead of reporting them as unexpected errors.
Evidence
Improved error classification (search for "detectFileEncoding failed for expected reason")
Strings lifted out of the shipped bundle, so the claim above can be checked against them.