The “can you write a character who isn’t you” gets aired fairly frequently on teh intrawebs. As I recall, Jay Lake re-visited it last week. But today Elizabeth Bear has come out with a whole lot of good advice as to how to get it right. Worth reading.
And yes, writers, please do keep trying to write a diverse selection of characters.