Small refactoring getParams method.
Escape path.