You'll want to use a non default constructor of the UnicodeEncoding class to create an UTF16 encoding without a BOM;
using (var sw = new StreamWriter(s, new UnicodeEncoding(false, false)))
{
sw.WriteLine(line);
}
The first false
sets little endian encoding, you can set it to true for big endian. The second false
disables the BOM.