cmake: Fix SARIF diagnostics output path encoding on Windows

Avoid using `filesystem::path` to hold the output path.  It performs
encoding conversions that violate our internal UTF-8 encoding.

Fixes: #27471
Issue: #27472
3 files changed