Percent-encode arguments to example URL generator

Otherwise using characters like `?` will lead to a 404.