stri_enc_toutf8() Error

Hi,

I imported some data from sql server in R. After transforming the data, when I want to save it in excel, it gives me the following error:

Error in stri_length(newStrs): invalid UTF-8 byte sequence detected; try calling stri_enc_toutf8()

How do I solve this issue using tidyverse still?

Thanks!