Revert "Properly escape the foldername to avoid XSS issues"

This reverts commit 045b275b270ec8bc0a82c7d881336db30db274f3.