copying file.j2 to the mahine returning error

I have a configuration file.j2 , I am trying to copy the file from ansible templates to destination(server)
it keeps giving the below error

fatal: [uat_cdxdb]: FAILED! => {“changed”: false, “msg”: “Template source files must be utf-8 encoded”}

please advice ?