The thing is this: nobody says "how do you do" nowadays. Perhaps if you were invited to a Buckingham Palace garden party the Queen might ask "How do you do?" or you might ask her the same. Short of that, the expression is purely archaic. Probably a question mark is a good idea, but in the actual circumstances it really does not matter.
Interested in Language