How mysqldump replaces special characters during dumping records?
There are two ways: string and hexadecimal notation, e.g.:


'abc\' as string will be like this -> 'abc\\', all special characters are escaped
'abc\' as hexadecimal will be like this -> 0x6162635C, you can test it using HEX function - SELECT HEX('abc\\');


You can choose one of those methods. Also, try to play with --hex-blob option and check results.