Fixed the generation of the AJAX menus
Fixes #684
Fixed the title for page with encoded characters
Fix #685