function decode(input) {
  try {
    return decodeURIComponent(input.replace(/\+/g, ' '));
  } catch (e) {
    return null;
  }
}
Decode a URI encoded string.

@param {String} input The URI encoded string.
@returns {String|Null} The decoded string.
@api private