zhuǎn​wēi​wéi'ān

to turn peril into safety