Apply a patch from Adrian Knoth to make a char explicitly signed.  This fixes a bug exhibited on ARM platforms.