We quote each passed through argument, and escape quote chars in them. For cases when the passed through argument ends with a backslash, this fails though, since whatever is unescaping it doesn't seem to handle double backslashes for escaping backslashes themselves.