stringify correctly un/compress output