[ctl] set proper encoding for sys.stdout/sys.stderr. Closes #1669144
# -*- coding: utf-8 -*-# copyright %(year)s %(author)s, all rights reserved.# contact %(author-web-site)s -- mailto:%(author-email)s#%(long-license)s"""%(distname)s views/forms/actions/components for web ui"""