std::filesystem::path passes std::locale objects as opposed to codecvt facets. We can support both, using std::use_facet<codecvt_type>(loc).
std::filesystem::path
std::locale
codecvt
std::use_facet<codecvt_type>(loc)