Warning: Error in sub: input string 1 is invalid UTF-8 [No stack trace available]

I am new to R shiny, I am getting the error "Warning: Error in sub: input string 1 is invalid UTF-8
[No stack trace available]" not able trace exact error line and also unable to solve this error. searched for resolution online and tried everything.
RStudio version is 1.4.116.
Could you please anyone help me with the same.
Thanks in advance!