Added a TemplateNormalization to normalize URLs and escape invalid characters