Fixed FTP upload/download issues.