Convert to utf8 in data_out function.