public function normalize()
{
if (!$this->uri) {
return '';
}
$path = $this->path ?: '/';
$path = $this->removeDotSegments($path);
$path = $this->decodeUnreservedCharacters($path);
$path = $this->decodeReservedSubDelimiters($path);
return $this->reconstitute($this->scheme, $this->getAuthority(), $path, $this->query, $this->fragment);
}