const value = encodeURIComponent(value).replaceAll('%20','+'); const url = 'http://example.com?lang=en&key=' + value