Escape ~ in exclude tag.