Hmm, but open has nothing to do with Apache2::Filter. I was able to append those values without problem.
Btw, I'm using now Compress::Zlib to uncompress the buffer, manipulate it, then compress it again. Working just fine.
To check encoding I'm using now