Fix UnicodeDecodeError exceptions when connecting with Socks5 proxy

Status Job ID Name Coverage
  Test
passed #2885
run-test

00:00:05

canceled #2883
run-test

 
  Build
passed #2884
run-build

00:00:04