share/utf8: Add missing check