Major bug fix to enchanted books

Major bug fix to enchanted books - now writes the correct tag. Not sure
how this change never got checked in.