revert to nsIProcess to fix issue #460
factor out debug string generation; use windows-1252 encoding to ensure correct stringification; increase max len to 255
use old socket API on older versions of platform
use a new ArrayBuffer for every packet to appease nsIDOMTCPSocket's new ArrayBufferInputStream-based implementation