Safely handle invalid UTF-8 data by letting the parser fail
Conditionally use the new Data.ByteString.Lazy.toStrict and fromStrict