Add missing null terminator before using byte-array contents as string.