Some work towards addressing the crash on OS X when trying to save a file under a new name (#110).