XWIKI-9302: The parameters specified in an "anchor" are encoded (fixed).

Tests are OK.
JIRA issue: https://jira.xwiki.org/browse/XWIKI-9302