Refactored hexlify_to_bin internals. Added Spec