Fix: persist file extensions when renaming. Specify custom extension.