mb_substr() expects parameter 2 to be long, string given

Adding missing intval as suggested in bug 51834

Bug: 51834
Change-Id: I0bc8d612dc52d32e2cd616325e800b95c4efa23f
Merge "mb_substr() expects parameter 2 to be long, string given"