partial implementation of backwards conversion for text-to-binary