encode utf8 properly and complain about lack of title early