I am not looking for a file compressor that possibly add some unwanted header in the output result (like zip or RAR compressors).
I guess a simple online implementation of huffman or LZW is enough. I would use Base64 encoding to represent the compression result in a readable format (although it is not efficient and it is better that the compressor limit output to readable characters)