MDL-41197 textlib: test assertion to demonstrate notice

When experiencing invalid chars we shouldn't generate a notice. This
assertion tests that case.
MDL-41197 core_text: silence conversion errors