count number of characters (with mb_strlen) instead of counting number of bytes with strlen