Close #1: Serialize events correctly for hashing