that would give that error if there was a space in the filename. See my node titled
for a little more background. It might be worth checking to see if you're running a recent version of Net::FTP. Unfortunately I don't remember the version number related to this particular issue.