Do not imply that str is sometimes null-terminated.