Pseudofolliculitis barbae (razor bumps) is caused by: