FTP connection works, but file uploaded incorrectly