Replace an outputStr with putStrLn calls; fixes #4332