Get file extension at end of convert method