encoding.c: Spill huge strings onto heap