Encode summary and host_regex parameters when adding events