This is C# code for .NET Core application.
This code provides
BodyNamePatchedEncoding Encoding class for wrapping other encoding object
to avoid raising "System.NotSupportedException : No data is available for encoding ????".
This exception is sometimes raised when using the encoding object that is in System.Text.Encoding.CodePages NuGet package, because those encoding classes don't implement "BodyName" and "HeaderName" property.