Translate an ucs4 wide string into an utf8 string.
References RETVAL_FAILED, scim_bridge_perrorln(), and scim_bridge_wstring_get_length().