cm::filesystem::path: ensure independence from the program locale.

Fixes: #27472
5 files changed