Add proper encoding support to ftp_list