Bug fixes in FTPUtils