[GHC] #15553: GHC.IO.Encoding not flushing partially converted input