public function toUriString(Authority $authority = null)
    {
        $path_string = parent::toUriString();

        if (!empty($this->data)) {
            $path_string = $this->normalizePathWithAuthority($authority);
        }

        return $path_string;
    }