BUILD: tree-wide: cast arguments to tolower/toupper to unsigned char

NetBSD apparently uses macros for tolower/toupper and complains about
the use of char for array subscripts. Let's properly cast all of them
to unsigned char where they are used.

This is needed to fix issue #729.
diff --git a/src/h1.c b/src/h1.c
index 368eb14..bb8acfb 100644
--- a/src/h1.c
+++ b/src/h1.c
@@ -662,7 +662,7 @@
 			if (!skip_update) {
 				/* turn it to lower case if needed */
 				if (isupper((unsigned char)*ptr) && h1m->flags & H1_MF_TOLOWER)
-					*ptr = tolower(*ptr);
+					*ptr = tolower((unsigned char)*ptr);
 			}
 			EAT_AND_JUMP_OR_RETURN(ptr, end, http_msg_hdr_name, http_msg_ood, state, H1_MSG_HDR_NAME);
 		}