Fix type of EventRouter::Rule pattern_str