Removed non-standard "ui8" integer literal and replaced it with static_cast<unsigned char>(...) statements.