set encoding right