Add functions to set/get messageId as hex string