change UTF8Terminal and UTF8CGI flags to manual flags