On the character of certain irreducible modular representations