Suppressing LookupError: unknown encoding: latin1 on Mac during a large number of connections