return an array of bytes from a unicode string