Read entire compressed file in 3.2 to get around inconsistencies with TextIOWrapper