Fix directories escaping