Recently I was trying to transfer a file from a server to my laptop, unfortunately the path to the file I needed to transfer has spaces in it and I didn't have the luxury of transferring from the server to my machine.
A quick google search netted a result to RasterWeb!. It's an old post and obviously an old problem. In summary...
using scp bar@foo.com:"/home/fubar/some\ folder/file.txt" ./ will work. You need to escape the slash and the space