handle binary data by using buffers and base64 encoding it all, fixes #9