use <code>static::encodeQueryFragment</code> instead of self::