[BUGFIX] Encode link URL in RelationCountRenderer

The Grid/RelationCountRenderer renders a link to the
related datatype. The link URL contains special characters,
which need to be encoded.

Resolves: #57570
Change-Id: I5294cdd093af0fae47c9489e1f44f3d83fe5de6b