function stringifyString(str, prefix) {
  if (!prefix) throw new TypeError('stringify expects an object');
  return prefix + '=' + encodeURIComponent(str);
}
Stringify the given `str`.

@param {String} str
@param {String} prefix
@return {String}
@api private