Use the result of writeCharBuf in GHC/IO/Encoding/Latin1.hs too