Unfortunately, casting a char8_t* to char* (and then accessing the data through the char* pointer) is undefined behavior.