Fix #1166: Correct the amount of allocated memory for non-ascii strings in ccallFunc().
Merge pull request #1629 from ngld/fix-ccallFunc-utf8

Fix ccallFunc to properly support UTF-8 strings