fix utf8 error recovery for stream decoding