i am looking for (will eventually code it if not found) code to do simple run-length compression.
i would modify that so a single character did not need a number so 'abcde' -> 'abcde'. but as you can tell from the outset, this wastes codespace.
in most cases i would do bzip and put that in base64/32/16 if the transport environment was not 8-bit capable.