def JIDEncode(str):
	str = str.replace('\\5c', '\\5c5c')
	for each in xep0106mapping:
		str = str.replace('\\' + each[1], '\\5c' + each[1])
	for each in xep0106mapping:
		str = str.replace(each[0], '\\' + each[1])
	return str
dataset/ETHPy150Open CouchPotato/CouchPotatoServer/libs/xmpp/jep0106.py/JIDEncode/original