<PackageReference Include="NLog" Version="6.2.2" />

NLog.LayoutRenderers.Wrappers.UrlEncodeLayoutRendererWrapper

Encodes the result of another layout output for use with URLs.
public bool EscapeDataNLogLegacy { get; set; }

Gets or sets a value whether escaping be done according to the old NLog style (Very non-standard)

public bool EscapeDataRfc3986 { get; set; }

Gets or sets a value whether escaping be done according to Rfc3986 (Supports Internationalized Resource Identifiers - IRIs)

public bool SpaceAsPlus { get; set; }

Gets or sets a value indicating whether spaces should be translated to '+' or '%20'.