Fix #332: Error when renaming on Windows.