Keep the original file extension, if available.