Use portable_getline (almost) everywhere.