Hi Jayan,
The problem is your file cells contains "," which at the same time is your csv separator.
info += encodeURIComponent(valor) + ',';
You should change your csv separator from"," to ";" or another one.
This way you won't have this issues anymore.
Once you change your separator, the previous sentence would look like this:
info += valor + ';';
In thenext post you can find the explanation on how to change your csv file separator.
Import or export text (.txt or .csv) files - Excel
Regards,
Emanel