naive folder reader, optimized encoding structure