Set encoding within shell