This patch fixes a bug on machines where char is unsigned by default, by