gcc6: narrowing conversion from char to unsigned char