1. Added code-friendly flag.
2. Use UTF-8 decoding for all template files and configuration files. It
should fix the UnicodeDecodeError you encountered if you use other
languages instead of English in your templates.