handle binary cookies