produce a string that is suitable as unicode literal from string 'm\\n{ampersand}m\\n{apostrophe}s','M\\N{AMPERSAND}M\\N{APOSTROPHE}s'.encode().decode('unicode-escape')