Canonicalise URLs on import