a little const correctness doesn't hurt
Fix behavior of "Save As" at last!