diff --git a/src/StatusNotifier/Util.hs b/src/StatusNotifier/Util.hs
--- a/src/StatusNotifier/Util.hs
+++ b/src/StatusNotifier/Util.hs
@@ -17,14 +17,13 @@
 import           Language.Haskell.TH
 import           Network.Socket (ntohl)
 import           StatusNotifier.TH
-import           System.IO
-import           System.IO.Unsafe
-import           System.Log.Handler.Simple
+import qualified Data.Text.IO as TIO
+import           Data.Text (pack)
 import           System.Log.Logger
 
 getIntrospectionObjectFromFile :: FilePath -> T.ObjectPath -> Q I.Object
 getIntrospectionObjectFromFile filepath nodePath = runIO $
-  head . maybeToList . I.parseXML nodePath <$> readFile filepath
+  head . maybeToList . I.parseXML nodePath <$> TIO.readFile filepath
 
 generateClientFromFile :: G.GenerationParams -> Bool -> FilePath -> Q [Dec]
 generateClientFromFile params useObjectPath filepath = do
@@ -122,7 +121,7 @@
   -> T.ObjectPath
   -> IO (Either M.MethodError (Maybe I.Object))
 getInterfaceAt client bus path =
-  right (I.parseXML "/") <$> introspect client bus path
+  right (I.parseXML "/" . pack) <$> introspect client bus path
 
 findM :: Monad m => (a -> m Bool) -> [a] -> m (Maybe a)
 findM p [] = return Nothing
diff --git a/status-notifier-item.cabal b/status-notifier-item.cabal
--- a/status-notifier-item.cabal
+++ b/status-notifier-item.cabal
@@ -1,11 +1,13 @@
--- This file has been generated from package.yaml by hpack version 0.28.2.
+cabal-version: 1.12
+
+-- This file has been generated from package.yaml by hpack version 0.31.1.
 --
 -- see: https://github.com/sol/hpack
 --
--- hash: 692373b1ddc9b82457b214c2eb42f50e70a132306fd54dc142eb6150b72e1a63
+-- hash: 0a80c7788062c81393bf8273d706fa5e55fa7564193e42136f410ab6d147fe10
 
 name:           status-notifier-item
-version:        0.3.0.0
+version:        0.3.0.1
 synopsis:       A wrapper over the StatusNotifierItem/libappindicator dbus specification
 description:    Please see the README on Github at <https://github.com/IvanMalison/status-notifier-item#readme>
 category:       Desktop
@@ -17,10 +19,9 @@
 license:        BSD3
 license-file:   LICENSE
 build-type:     Simple
-cabal-version:  >= 1.10
 extra-source-files:
-    ChangeLog.md
     README.md
+    ChangeLog.md
     xml/StatusNotifierItem.xml
 
 source-repository head
@@ -46,13 +47,14 @@
       base >=4.7 && <5
     , bytestring
     , containers
-    , dbus >=1.0.0 && <2.0.0
+    , dbus >=1.2.1 && <2.0.0
     , filepath
     , hslogger
     , lens
     , network
     , spool >=0.1 && <1.0
     , template-haskell
+    , text
     , transformers
     , vector
   default-language: Haskell2010
