diff --git a/ChangeLog.md b/ChangeLog.md
--- a/ChangeLog.md
+++ b/ChangeLog.md
@@ -1,5 +1,9 @@
 # Revision history for irc-core
 
+## 2.2.0.1  -- 2016-12-18
+
+* Exchange `memory` dependency for `base64-bytestring`
+
 ## 2.2.0.0  -- 2016-09-15
 
 * `ircIson` packs all the nicks into a single argument
diff --git a/irc-core.cabal b/irc-core.cabal
--- a/irc-core.cabal
+++ b/irc-core.cabal
@@ -1,5 +1,5 @@
 name:                irc-core
-version:             2.2.0.0
+version:             2.2.0.1
 synopsis:            IRC core library for glirc
 description:         IRC core library for glirc
                      .
@@ -34,10 +34,10 @@
   other-modules:       View
 
   build-depends:       base       >=4.9  && <4.10,
+                       base64-bytestring >= 1.0.0.1 && <1.1,
                        attoparsec >=0.13 && <0.14,
                        bytestring >=0.10 && <0.11,
                        hashable   >=1.2  && <1.3,
-                       memory     >=0.13 && <0.14,
                        primitive  >=0.6  && <0.7,
                        text       >=1.2  && <1.3,
                        time       >=1.6  && <1.7,
diff --git a/src/Irc/Commands.hs b/src/Irc/Commands.hs
--- a/src/Irc/Commands.hs
+++ b/src/Irc/Commands.hs
@@ -51,7 +51,7 @@
 import           Data.Text (Text)
 import qualified Data.Text as Text
 import qualified Data.Text.Encoding as Text
-import qualified Data.ByteArray.Encoding as Enc
+import qualified Data.ByteString.Base64 as Enc
 
 -- | PRIVMSG command
 ircPrivmsg ::
@@ -261,6 +261,6 @@
   Text
 encodePlainAuthentication user pass
   = Text.decodeUtf8
-  $ Enc.convertToBase Enc.Base64
+  $ Enc.encode
   $ Text.encodeUtf8
   $ Text.intercalate "\0" [user,user,pass]
