Fix error with unicode when connecting device