make sure that strings we read from a socket are UTF8