Checking if mb_strlen exists first

fall back to strlen