Correctly urlencode folder names in the file manager (see #6925)