function tryDecodeURIComponent(value) {
  try {
    return decodeURIComponent(value);
  } catch (e) {
    // Ignore any invalid uri component.
  }
}
Tries to decode the URI component without throwing an exception.

@private
@param str value potential URI component to check.
@returns {boolean} True if `value` can be decoded
with the decodeURIComponent function.