Re: workaround
Still, I think recording and ignoring the offending lines more appropriate
Well, I could introduce some kind of heuristic parsing. But I'm afraid of this as this is obviously hard to debug without access to all possible platforms, etc.
I recommend to use SFTP instead of SCP as it is more complete and much better designed protocol. With it these problems hardly occur (especialy with version 4).