to binary before sent to hiredis