undoes hextype as well as it can, but it's a lossy process.