Could you validate these arguments? For example, I assume name cannot be null or empty. `bytes` shouldn't be null either. Throw an `ArgumentException` or `ArgumentNullException` where appropriate.