more JS to Haskell string conversion