ASCII->POLY: avoid trailing junk data