Fix mb_strlen replacement returning wrong value

see http://wpengineer.com/2410/dont-use-strlen/