Here is the source code: ht-tps://github.com/MiCode/Xiaomi_Kernel_OpenSource/tree/cancro-kk-oss
path: fs/nls/nls_utf8.c
I have no idea about building kernel, hope someone can help
I found stock kernel for cancro had nls support integrated, so needn't compile nls_utf8 module.