Turned CGI script into a (WSGI-compliant) Flask application. Use UTF-8.
Switched from XHTML 1.0 Strict to HTML5.