Fixed regression introduced by commit 7c849dd8e8cae590a127b49f5831943f79f80343
We need to add +1 to the string size to have the correct message size (\0)
Updated tests as the serialization has changed