filter control chars out of error message