string2rule.py: Add special chars to the rules.