Add t/90-encoding-locale.t

Check that encoding::_get_locale_encoding exists as we may use it in the
future...