Hi, Your patch was a 'bit' inefficient, generating way too many function calls. I've pushed my own version called sim_string_to_utf8, which can be found in util.c. Please review it for any issues.. Regards, -Denis