Escape folder name

Patch by Ritesh Khadgaray <khadgaray@gmail.com>