Fix bug where users could have overloaded strlen() with
http://php.net/manual/en/mbstring.overload.php. If mb_strlen exists we
will use that, else fall back on strlen()