Reads incoming lines and gracefully handles utf-8 errors.

Signed-off-by: Peter Atashian <retep998@gmail.com>