The NUL terminator is an extraordinary hack, in the best sense of that word, but it is not elegant. Strings that have to be expensively interrogated to discover their length have cost the industry billions and billions of dollars due to the inevitable software faults they cause.