function jsonSize(value) {
  return utf8Length(JSON.stringify(value));
}
Normalizes URLs in exceptions and stacktraces to a base path so Sentry can fingerprint
across platforms and working directory.

@param url The URL to be normalized.
@param basePath The application base path.
@returns The normalized URL.