Rename file and buffer