The best solution for encoding in search params format is:
new URLSearchParams({ [""]: value }).toString().slice(1)