- Use UTF-8 as encoding to send data to server

Small fixes on sync :

- Use UTF-8 to send data to server, else, special characters like ç, é, è are not encoded correctly
- Use groupedIds instead of undefined variable group in order to avoid error