Simplify Python/Ruby Erlang binary term encoding.