changed encoding in getDropboxDirectory