Check readline() instead of 3 bytes, resyncs faster.