Adding support for locale-based collation if the intl extension is installed.