$perl_string = decode("utf8", my_c_function(encode("utf8",$_)));