Encode binary as code-blocks