He liked to tell dirty jokes, and his female employees were often the target.