Factorise global var in config.py.
Fix encoding issue for title display.