encode strings with utf-8 encoding before syncing with remote server