Replaces illegal chars in action with an underscore