Correct matching of control characters