more robust frame to string conversion for msgs