can you save in a text file the string "as is"?
I work with strings that contains control codes like Cr, Lf, STX, ETX, EOT, etc., and the same method that I posted at your other thread asking this...is the one that I use...

post in a zip file the text file and tell me what are the strings that you don't want and I'll make you something that will work with your "real" data...