If done intentionally as a pun, this would be called a transpositional pun. For example, in the context of paving a switchback trail with stones, someone might say "Leave no turn unstoned!" (sorry)
The Wikipedia page lists several more examples:
Dieting: A waist is a terrible thing to mind.
Olympic officials: The souls that time men's tries.
Hangovers: The wrath of grapes.
The oboe: An ill wind nobody blows good.
Feudalism: It's your count that votes!
Soldiers of fortune: Give chance a piece
Vigilantism: the soul of the Dark Knight
Trophies: the memory of persistence