> I did realise that, then got distracted, did something else, and came > back to the email and was thinking about .cc and .c2. :-)
Sorry, I wasn't thinking either. If we choose as control and escape character some little-used ASCII control characters which we are sure will not appear in the input file, then there is no need to escape or prepend anything, so filtering will not be necessary.