AI REVIEWED
Module: cli
Files: All format handlers
Severity: High
Summary
Some tools and Windows editors add a UTF-8 BOM (EF BB BF) to files. When present, JSON/YAML/TOML parsers fail with confusing error messages because the BOM character is not valid syntax.
Suggested Fix
Strip BOM before parsing:
if (content.startsWith("\uFEFF")) {
content = content.substring(1);
}