fix encoding issue during server check