refactor all code not to use CGI::charset
refactor all code not to use CGI::header
refactor all code not to use CGI::redirect