Working with uint8_t*

Have you checked how it is done in this exemple?

On utf8 it’s good to read this and that (but probably a different discussion)