URI encode event collection names.

Raise argument errors (event_collection and properties) earlier.