UBlueprintPathsLibrary::ChangeExtension

Changes the extension of the given filename (does nothing if the file has no extension)