Correctly handle window title in MDI mode
Thanks to KDJ, see http://akelpad.sourceforge.net/forum/viewtopic.php?p=24682#24682