I want to escape a string variable into a URL. However, I want to escape the variable in the URL path, not in the query.
For example with this nodejs snippet: