the easiest one is using $ operator to convert cstring to Nim string, assuming it is null terminated. then the resulted string can be iterated using Nim unicode module, assuming it is encoded in UTF8.
if it is not encoded in UTF8, you need to find another suitable library, or write it yourself, it's not that too hard if only dealing with UTF16 - UTF8 - UTF32 conversion.