add encoding and defencoding setting for screen.