Relaxing allowed url formats and normalizing in code