Turns out SFTP wants to mangle paths
Might as well test FTP and HTTP while I'm here