UBlueprintPathsLibrary::NormalizeDirectoryName

Normalize all / and \ to TEXT("/") and remove any trailing TEXT("/") if the character before that is not a TEXT("/") or a colon