Does nothing other than convert the char array to a byte array using the specified encoding.
Convert a char array to a BytesRef