function encodeAsterisk (str) {
  return encodeURI(str).replace(/[?#]/g, function (c) {
    return '%' + c.charCodeAt(0).toString(16).toUpperCase()
  })
}
Encode the asterisk parameter. Similar to `pretty`, but allows slashes.

@param  {string}
@return {string}