try fix intermittent idna encoding bug