A stricter URI encode adhering to RFC 3986
$ npm install strict-uri-encode
const strictUriEncode = require('strict-uri-encode');
strictUriEncode('unicorn!foobar');
//=> 'unicorn%21foobar'
strictUriEncode('unicorn*foobar');
//=> 'unicorn%2Afoobar'Type: string | number
String to URI encode.
Thanks to Kevin (https://github.com/kevva/strict-uri-encode) for the repo