Replaced normalise with RFC 3986 compliant remove dot segments