fixed text read from gzip using TextIOWrapper