[cyril] changed book and unbook to deal with bad content-type.