Sanitize canonical_url in template output