Use mb_strlen instead of stlen when mbstring extension is available.