- Use UTF-8 as encoding to send data to server
- Use groupedIds instead of undefined variable group in order to avoid error