diff --git a/library/YamlUnscrambler.hs b/library/YamlUnscrambler.hs
--- a/library/YamlUnscrambler.hs
+++ b/library/YamlUnscrambler.hs
@@ -293,11 +293,11 @@
   bytesParsingScalar Ex.Base64BinaryScalar $ \bytes ->
     let bytesWithoutNewlines =
           ByteString.filter (/= 10) bytes
-     in case Base64.decodeBase64 bytesWithoutNewlines of
+     in case Base64.decode bytesWithoutNewlines of
           Right res ->
             return res
           Left err ->
-            Left err
+            Left $ fromString err
 
 -- *
 
diff --git a/yaml-unscrambler.cabal b/yaml-unscrambler.cabal
--- a/yaml-unscrambler.cabal
+++ b/yaml-unscrambler.cabal
@@ -1,5 +1,5 @@
 name: yaml-unscrambler
-version: 0.1.0.8
+version: 0.1.0.9
 synopsis: Flexible declarative YAML parsing toolkit
 stability: Experimental
 homepage: https://github.com/nikita-volkov/yaml-unscrambler
@@ -43,7 +43,7 @@
     attoparsec-data >=1.0.5.2 && <1.1,
     attoparsec-time >=1.0.1.2 && <1.1,
     base >=4.11 && <5,
-    base64 >=0.4.2.2 && <0.5,
+    base64-bytestring >=1.2.1 && <1.3,
     bytestring >=0.10 && <0.12,
     conduit >=1.3.2 && <1.4,
     containers >=0.6.2 && <0.7,
