CORS: convert event data to strings before sending it off