Fix filename according to the class name.