Vets sell products to remove the smell from dogs, but I'm not sure about your carpet. I have had good luck removing skunky smells from books - might work for a quilt? I get a large plastic trash bag and fill it with clay kitty litter (nothing fancy, just the cheap kind). Then I lay the books on top and close the bag tightly. Leave alone for a couple of weeks and, when that time is over, the smell is gone. Good luck!