diff --git a/hexpat-pickle-generic.cabal b/hexpat-pickle-generic.cabal
--- a/hexpat-pickle-generic.cabal
+++ b/hexpat-pickle-generic.cabal
@@ -1,5 +1,5 @@
 name:                  hexpat-pickle-generic
-version:               0.1.6
+version:               0.1.7
 synopsis:              Picklers for de/serialising Generic data types to and from XML
 license:               BSD3
 license-file:          LICENSE
diff --git a/src/Text/XML/Expat/Pickle/Generic.hs b/src/Text/XML/Expat/Pickle/Generic.hs
--- a/src/Text/XML/Expat/Pickle/Generic.hs
+++ b/src/Text/XML/Expat/Pickle/Generic.hs
@@ -441,16 +441,8 @@
     , unpickleTree = unpickleTree pu . mconcat . map extract
     }
   where
-    extract (Element _ _ cs) = strip . mconcat $ map extract cs
-    extract (Text txt)       = strip txt
-
-    strip = snd . BS.break valid . fst . BS.breakEnd valid
-
-    valid c
-        | isSpace c = False
-        | c == '\r' = False
-        | c == '\n' = False
-        | otherwise = True
+    extract (Element _ _ cs) = mconcat $ map extract cs
+    extract (Text txt)       = txt
 
 --
 -- Instances
