Function escapeForShell