handle binary strings