The message we get from zmq_msg_data() is not null-terminated, so make
sure we terminate it before trying to release any memory or print it