set encoding to system encoding