Add something to be entity-encoded to custom URL.

Refs mapserver/mapserver#4622