add a simple function to dump a misp event as flat string