We also detect backslash escapes and entity references.
Serializable types for the events in the Matrix specification that can be shared by client and server code.