Thanks!
I applied a slightly different patch to check the return code of converting the UTF8 value to internal db val with cloning.
For future PRs, format the git commit lines as per contributing guide: * https://github.com/kamailio/kamailio/blob/master/.github/CONTRIBUTING.md#com...
It makes merging straightforward via web interface, without manual patching to adjust the commit message.