`replace()` is a template function defined in `<algorithm>`. It isn't a method of `std::string`.

Look at the `ConvertToNativePath()` and `ConvertToUnixPath()` functions in `appshell_extensions_win.cpp`. They both use `replace()`.