support binary encoding
compute correct length for binary string
test coverage for binary encoding
1.3.0