Handle UTF errors with invalid bytes.