Converts text to binary.