Added check for mbstring extension.