- const char *begin; /**< UTF-8 encoded string, the last character is
- * guaranteed to be 0 */
- size_t size; /**< size of string in bytes (not characters) */
+ char const *begin; /**< UTF-8 encoded string, the last character is guaranteed to be \0. */
+ size_t size; /**< size of string in bytes (not characters), without terminating \0. */
+ string_encoding_t encoding;