Correct the code to convert a string to a byte array so it is correct.