Used when resolving and merging paths to correctly interpret and
remove single and double dot segments from the path per
RFC 3986 Section 5.2.4

@see http://tools.ietf.org/html/rfc3986#section-5.2.4

@param string $path

@return   string
@internal param \CodeIgniter\HTTP\URI $uri