Convert strings to binary