rfc-encode-uri This library polyfills encodeURI/encodeURIComponent to make it RFC3986-compliant. Install npm install rfc-encode-uri Usage Just require this package require('rfc-encode-uri'); then it will replace encodeURI/encodeURIComponent to a RFC3986-Compliant ones.