fix dumb bug in proto_encode
testing reliability/speed trade offs

speed sucks so far T_T