Remove newlines from error messages