added better unicode representation for errors