Text this: Shaping the topology of folding pathways in mechanical systems