length prefixes is how i do all of my string and other array encoding in my binary data protocols Wurth was right about this, and notably, pretty sure that if you asked Thompson he would say that null termination was a false economy