Exposing normalizeUrl