[DF-5482] Additional checks in UTF8UtilsMac and some minor change in libunibreak.