Fix mako error reporting on Ubuntu 10.04

Two problems here:
- RichTraceback() in Mako 0.2.5 expects a traceback, not an error object
- Python 2.6 has no '{}' shortcut in .format()
Mako 0.2.5 has no <%block>
Handle Unicode without crashing