relaxed filename checking for saveas argument