Implement alert message serialize/deserialize