I think we should replace invalid characters with nothing; just remove them. If we replace them, the user will most definitely edit the class name. If we just remove the invalid characters, the user may be given a class name they are happy with. Since the user is probably more likely to be happy with the results of removal than with replacement, we should just remove them. We should also say something like "Stripping invalid characters from: Class Name" in the status bar.
I think we should replace invalid characters with nothing; just remove them. If we replace them, the user will most definitely edit the class name. If we just remove the invalid characters, the user may be given a class name they are happy with. Since the user is probably more likely to be happy with the results of removal than with replacement, we should just remove them. We should also say something like "Stripping invalid characters from: Class Name" in the status bar.