update #receive message to set encoding