Node.js module to generate the canonical URL from a string representing a URL