FBlueprintEditorUtils::ReplaceInvalidBlueprintNameCharacters

Cleanses a name of invalid characters and replaces them with '_'.