static void mungestr(char *in, char *out)
static void mungestr(const char *in, char *out)
static void mungestr(char *in, char *out){    int candot = 0;    while (*in) {	if (*in == ' ' || *in == '\\' || *in == '*' || *in == '?' ||	    *in == '%' || *in < ' ' || *in > '~' || (*in == '.'						     && !candot)) {	    *out++ = '%';	    *out++ = hex[((unsigned char) *in) >> 4];	    *out++ = hex[((unsigned char) *in) & 15];	} else	    *out++ = *in;	in++;	candot = 1;    }    *out = '\0';    return;}