Write buffers instead of arrays - node-serialport auto converts arrays to buffers but other output streams do not.