Accept a leading UTF-8 BOM in local MCP Registry JSON
Local MCP Registry JSON captures saved with a leading UTF-8 byte-order mark are rejected with exit 2:
skillspector scan registry.json --mcp-registry --format json --no-llm
Unexpected UTF-8 BOM (decode using utf-8-sig): line 1 column 1 (char 0)
At main c81615007d40e86051a302a3cf897f8a05264928, the same capture without the three-byte prefix scans normally. Saved Registry reports used with --mcp-registry-compare share the same reader and are affected too.
Allow one leading UTF-8 BOM for local-file interoperability while preserving strict decoding, original byte/depth/record limits, findings, snapshot hashes and comparison behavior. Repeated signatures, misplaced signatures and UTF-16/32 remain outside the supported local UTF-8 format.
Microsoft documents BOM output for Windows PowerShell Unicode encodings. RFC 8259 section 8.1 permits parsers to ignore an initial BOM for interoperability; this does not change its prohibition on network producers adding one.