Text this: Representation of molecular structures with persistent homology for machine learning applications in chemistry