If I were you, I'd probably be examining every interaction I'd ever had with them and asking myself if what he said had any merit. It might have been a throw away remark or it could be how "he" feels. His wife probably feels very different from him regardless and I wouldn't let his tactlessness interfere with my friendship.
Perhaps you could look at how he is normally with his humour. Does he say things to other people which might make you wince? Is he more of a loner than a socialiser? Does he suffer from depression sometimes? There are lots of things which might make people say things in the moment that they don't really mean. That isn't necessarily any more excusable but would negate how you vulnerable you should feel.
Finally, don't let it ruin your confidence. You can't be everybody's cup of tea, especially when couples are involved.
Will Replacing School Uniforms With Tracksuits......



