Input encoding for the IRC server

Ok after some fiddling around i found out that flushing an empty string does not help. The proper way to do the encoding is to use the following:

using System.Text;
var encoding = new UTF8Encoding(false);
_Writer = new StreamWriter(_TcpClient.GetStream(), encoding);

Noteworthy is that by default most people use the following:

encoding = System.Text.Encoding.UTF8;

the problem with this is that it sends the BOM variable. While the example i just provided does not. For more info:
Stackoverflow link

I hope this clears up some issues for others in the future. Please mark up somewhere that twitch IRC wants to get UTF-8 and WILL stumble over BOM character(s) in front of the message. This should get people to think about BOM and if it applies to them or not.

Thanks in advance,
Smileynator