SignalR/SignalR — pull request #983 by kppullin (2012-11-19 22:20:10+00:00)
Title: Suppress the UTF8 BOM. Fixes issue #982

By default, a StreamWriter opened with Encoding.UTF8 includes the UTF 8 byte-order-mark, which causes issues with consumers that don't expect it (Java & Node.js apps being a couple examples).

The proposal here is to not include the UTF8 BOM with the response, in order to make life easier on consumers (like hubot-jabbr), which fail upon reading the BOM. This also saves an amazing 3 bytes!

Another minor benefit is that this brings consistency to PersistentConnection, ForeverTransport, and LongPollingTransport. PersistentConnection doesn't send the BOM, while the other two do.