fix for 'unsigned char' architectures