fixed cli encoding