Support objectMode streams in Node.js

Write original object to stream instead of its stringified version. This fixes writing objects to streams created as [Writable({objectMode: true})](http://nodejs.org/api/stream.html#stream_new_stream_writable_options).