Emailaggregation

I'm not convinced that we can use `encodeForURL` here. If I remember correctly, `encodeForURL` can only be used on HTML fragments, as it will do things like escaping slashes