Preserve file extension when restoring backup