化险为夷

huà xiǎn wéi yí

to turn peril into safety (idiom); to avert disaster

huà

to make into

xiǎn

danger

wéi

variant of 為|为[wei2]

non-Han people, esp. to the East of China