simple text to binary in a few lines of code