use feature detection for str.arrayBufferToOctets workaround (required for nodejs-0.6 build as well as phantomJS)