switch text to binary