Fix lore escaping and comparison

This fixes an issue where prices would get reset on items with
specially-colored lore.