Fixed to work with binary files

Hi,

I've just updated this to support raw binary files. Would be grateful if you could push this out to npm.

Thanks,
Dave.