static gboolean has_internal_nul(const char* str, int len) {
	/* Remove trailing nul characters. They would give false alarms */
	while (len > 0 && str[len-1] == 0)
		len--;
	return strlen(str) != len;
}
static gboolean has_internal_nul(const char* str, int len) {
	 
	while (len > 0 && str[len-1] == 0)
		len--;
	return strlen(str) != len;
}