utf8_substr fix

Should fix upgrade issues caused by PHP considering int 0 equal to null