pack a string as an array of characters, terminated by the "\u0000" charbyte. this is the c convention of strings