Escape default directory path to avoid javascript errors when path includes quotes