You need to know which are text files and which (if any) are binaries. You can convert only the text files on either end using dos2unix (which is likely to exist on one or the other system) or
roll your own.
Caution: Contents may have been coded under pressure.