diff --git a/Data/Text/IDN/StringPrep.hs b/Data/Text/IDN/StringPrep.hs
--- a/Data/Text/IDN/StringPrep.hs
+++ b/Data/Text/IDN/StringPrep.hs
@@ -104,7 +104,7 @@
 	200 -> ErrorNormalisationFailed
 	_ -> ErrorUnknown $ toInteger x
 
-foreign import ccall unsafe "stringprep"
+foreign import ccall "stringprep"
 	c_stringprep :: F.CString -> F.CSize -> F.CInt -> Profile -> IO F.CInt
 
 foreign import ccall "&stringprep_nameprep"
diff --git a/gnuidn.cabal b/gnuidn.cabal
--- a/gnuidn.cabal
+++ b/gnuidn.cabal
@@ -1,5 +1,5 @@
 name: gnuidn
-version: 0.1
+version: 0.1.1
 stability: experimental
 synopsis: Bindings for GNU IDN
 license: GPL-3
@@ -20,7 +20,7 @@
 
   build-depends:
       base >=3 && < 5
-    , text >= 0.7 && < 0.8
+    , text >= 0.2 && < 0.8
     , bytestring >= 0.9 && < 0.10
 
   extra-libraries: idn
