protected function filterFragment($fragment)
    {
        $fragmentStr    = $this->filterString($fragment);
        $fragmentDecode = rawurldecode($fragmentStr);

        return rawurlencode(ltrim($fragmentDecode, '#'));
    }