wininet: Code clean up by using heap_strdup* functions.