Added to bytes method to convert strings to byte array.