 +      /* Convert the ieNoProxy into a proper no_proxy value */
 +      no_proxy = strdup(ieNoProxy);
 +      pos = strpbrk(no_proxy, "; ");
-+      while (NULL != pos) {
++      while(NULL != pos) {
 +        no_proxy[pos-no_proxy] = ',';
 +        pos = strpbrk(no_proxy, "; ");
 +      }

 #include "urldata.h"
 #include "netrc.h"
 
@@ -4111,6 +4115,21 @@ static bool check_noproxy(const char* name, const char* no_proxy)
   return FALSE;
 }
 

+{
+    int bufSize;
+    char* out = NULL;
+    if( wStr != NULL )
+    {
+        bufSize = WideCharToMultiByte(
+            CP_ACP,  0, wStr, -1, NULL, 0, NULL, NULL );
+        out = ( char* )malloc( bufSize * sizeof(char));
+        WideCharToMultiByte( CP_ACP, 0, wStr, -1, out, bufSize, NULL, NULL );
+    }
