Throw an utf-8 error message on IO error