handle, print and skip exceptions if occurs. TODO:Support for encodings other than utf-8 still does not exist