diff --git a/CHANGELOG.md b/CHANGELOG.md
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,14 @@
 
 `hslua-module-text` uses [PVP Versioning][].
 
+## hslua-module-text-1.0.3.1
+
+Released 2023-01-06.
+
+-   Generalized a test to avoid failures with stack nightly.
+
+-   Added GHC 9.4 to test matrix.
+
 ## hslua-module-text-1.0.3
 
 Released 2023-01-03.
diff --git a/hslua-module-text.cabal b/hslua-module-text.cabal
--- a/hslua-module-text.cabal
+++ b/hslua-module-text.cabal
@@ -1,6 +1,6 @@
 cabal-version:       2.2
 name:                hslua-module-text
-version:             1.0.3
+version:             1.0.3.1
 synopsis:            Lua module for text
 description:         UTF-8 aware subset of Lua's `string` module.
                      .
@@ -22,7 +22,8 @@
                    , GHC == 8.8.3
                    , GHC == 8.10.7
                    , GHC == 9.0.2
-                   , GHC == 9.2.3
+                   , GHC == 9.2.5
+                   , GHC == 9.4.4
 
 source-repository head
   type:              git
diff --git a/test/test-text.lua b/test/test-text.lua
--- a/test/test-text.lua
+++ b/test/test-text.lua
@@ -91,7 +91,7 @@
     test('throws error if input cannot be decoded', function ()
       assert.error_matches(
         function () text.fromencoding('\xff\xff\xff\ff', 'utf16le') end,
-        "invalid byte sequence"
+        "invalid"
       )
     end),
     test('throws error if input is not a string', function ()
@@ -124,7 +124,7 @@
     test('throws error if input cannot be encoded', function ()
       assert.error_matches(
         function () text.toencoding('😊', 'latin1') end,
-        "invalid character"
+        "invalid"
       )
     end),
   }
