g_utf8_pointer_to_offset returns offsets in char units and not in byte units.