Encoding a value vs a whole URL
When putting text into a query parameter or path segment, encode it as a value: characters like &, =, / and ? are escaped so they can't break the URL. This matches JavaScript's encodeURIComponent.
When you have a complete URL that only needs spaces and special characters escaped, encode it as a whole URL: the structure (://, /, ?, &, =, #) is kept. This matches encodeURI.
Plus signs and spaces
HTML forms send spaces as +, while elsewhere in URLs a space is %20. Use the + options to match what your server expects.