unpack a string as an array of characters that's terminated by "\u0000" charbyte. this is the c convention of strings