fix: corrupt output message with extra '\0' characters