Add 4-byte big endian length to event message