diff --git a/src/openrct2/core/Path.cpp b/src/openrct2/core/Path.cpp index 2206901ef6..3be125d853 100644 --- a/src/openrct2/core/Path.cpp +++ b/src/openrct2/core/Path.cpp @@ -144,7 +144,7 @@ namespace Path const std::string GetExtension(const std::string& path) { - return fs::path{ path }.extension().string(); + return fs::u8path(path).extension().string(); } const utf8* GetExtension(const utf8* path)