Refactor url scrubbing regex and logic for Sentry