add support for serializing to binary strings (no base64)