String to array of charcodes