phonemeset: fix eof detection