index.js
function encodeSpecialCharacters (str) {
  return encodeURI(str).replace(/[!'()* ]/g, function (char) {
    return '%' + char.charCodeAt(0).toString(16)
  })
}
function encodeSpecialCharacters (str) {
  return encodeURI(str).replace(/[!'()* ]/g, function (char) {
    return '%' + char.charCodeAt(0).toString(16)
  })
}
function encodeSpecialCharacters ( str ) { return encodeURI ( str ) . replace ( / [!'()* ] / g , function ( char ) { return '%' + char . charCodeAt ( 0 ) . toString ( 16 ) } ) }
Remove characters that are valid in URIs, but S3 does not like them for
some reason.
@param  {String} str String to encode
@return {String}     Encoded string
@api prviate
Remove characters that are valid in URIs but S3 does not like them for some reason .