public static JsonSerializerOptionsBuilder SetEncoder(
     this JsonSerializerOptionsBuilder builder,
     [NotNull] JavaScriptEncoder encoder)
 {
     encoder.CheckNullWithException(nameof(encoder));
     return(SetActionBase(
                builder,
                t => t.Encoder = encoder));
 }