Control over self-assembly through reversible charging of the aromatic building blocks in photofunctional supramolecular fibers.