[Bug 669] Illegal C characters from the program name are not filtered while creating the spec.c file