Remove newlines in errors