Escape input string before passing it to cli runner