What editor are you using?
I'm not sure if this is a bug in WinSCP or otherwise, but when I open up a document for editing, and the document has a space in it, the document opens up in two editor windows, one for the part of the filename before the space and one for after.
Good luck