You can just do `memset(utf8String, 0, sizeof(utf8String));` since `sizeof()` returns the number of bytes occupied by its parameter.