How to pass string as JIT function argument

Please see my code at: https://gist.github.com/nttstar/8e45eafd4f2853d4e34796fcb1b2cbd6

It ends with segment fault at the end “cfunc(a, b)”.
There is no problem if the type of a and b is integer or float.

Can anyone help me with this issue?

I guess that we should pass 'Unicode` type with native format to the c-c-function, but I can not find an easy way to do it.