static void DebugLog(string msg) { if (_Log != null) { byte[] tmp = Encoding.UTF8.GetBytes(msg); _Log.Write(tmp, 0, tmp.Length); } }