Added normalize URL function