diff --git a/ChangeLog.md b/ChangeLog.md
--- a/ChangeLog.md
+++ b/ChangeLog.md
@@ -1,6 +1,11 @@
 # Changelog
 
 <!-- This ChangeLog follows a format specified by: https://keepachangelog.com/en/1.0.0/ -->
+## [1.1.2] - 2021-11-05
+
+### Fixed
+
+- Strip whitespaces from bech32 stdin to satisfy Windows `echo` command.
 
 ## [1.1.1] - 2021-06-11
 
diff --git a/Setup.hs b/Setup.hs
new file mode 100644
--- /dev/null
+++ b/Setup.hs
@@ -0,0 +1,2 @@
+import Distribution.Simple
+main = defaultMain
diff --git a/app/Main.hs b/app/Main.hs
--- a/app/Main.hs
+++ b/app/Main.hs
@@ -144,7 +144,7 @@
 run cmd = case cmd of
     VersionCmd -> putStrLn $ showVersion version
     RunCmd {prefix} -> do
-        source <- T.decodeUtf8 . B8.filter (/= '\n') <$> B8.hGetContents stdin
+        source <- T.strip . T.decodeUtf8 <$> B8.hGetContents stdin
         case prefix of
             Nothing  -> runDecode source
             Just hrp -> runEncode hrp source
diff --git a/bech32.cabal b/bech32.cabal
--- a/bech32.cabal
+++ b/bech32.cabal
@@ -1,5 +1,5 @@
 name:          bech32
-version:       1.1.1
+version:       1.1.2
 synopsis:      Implementation of the Bech32 cryptocurrency address format (BIP 0173).
 description:   Implementation of the Bech32 cryptocurrency address format documented in the
                BIP (Bitcoin Improvement Proposal) 0173.
