use uint8_t for utf-8 encoded strings