unix_capture.c: add error messages for invalid UTF-8