Don't rely on null character delimiting

It's slower to get the length of the string, and it's also less safe.