Fix IdMessage toString to serialize