Thanks for the response. I guess there's more than one way to mess up a file when it is sent from one place to another. I'll try your codes and post my results within a day or two.
It comes to mind that I might have been able to spot problems like this if I had loaded the files into a debugging type of hex editor because the spaces, line feeds and carriage returns would be clearly visible there.