in reply to changing binmode

What does File::Find have to do with printing to a file?
What escape characters?
Not recognized by what?

Start over. What are you trying to print, what do you expect to get, and what are you getting.