FPaths::RemoveDuplicateSlashes

Returns a copy of the given path on which duplicate slashes were removed (see the inplace version for more details).