Changes substr to mb_substr