Update MetaGenerator.php

Used mb_substr and mb_strlen for working with another encodinds like Russian
Merge pull request #2 from disc/patch-1

Update MetaGenerator.php