special char encode fix in C# core