Fix announcements extraction logic again. Also move webpage encoding to a global constant.