Restrict characters allowed in commands -- deals with "\date)."