utf8_substr fix

Should fix upgrade issues caused by PHP consider 0 equal to null