Normalize an url