export const escapeUri = (uri) => encodeURIComponent(uri).replace(/[!'()*]/g, hexEncode); const hexEncode = (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`;