Fixed c++11-narrowing errors for C++11 compatibility

char(0x80): constant expression evaluates to -128 which cannot be
narrowed to type 'unsigned char'
      [-Wc++11-narrowing]