Express middleware for canonicalisation of URLs