ah, I had to do this: buffer.toString('binary');