fix bug: texts are serialized with two ending '\0'

and so `loge_item_t.msg_len` is one byte bigger than it should be (when strlen(msg)>0).

fixes #1