Fix Console.Write(Char) and Console.Write(Char[]) causes unexpected memory access.