Fix error encoding datetime objects in the event track logger backend

The function json.dumps was being called with incorrect arguments,
causing an infinite recursion when serializing an event containing
datetime objects