Fix mb_strlen replacement returning wrong value

see http://wpengineer.com/2410/dont-use-strlen/
Merge pull request #1395 from emanwebdev/patch-30

Fix mb_strlen replacement returning wrong value