I have seen and/or heard the sentence "thank you for the kind words" more than once. The context is usually that the speaker is responding to an appreciative comment in a discussion whose overall purpose is different. For instance, I once received this response at a doctor's appointment after an appreciative comment of mine.
This sentence tends to sound a little bit trite to my ears--perhaps even dismissive. But judging by the occasions of use, I think it is used when the speaker is grateful for meaningful encouragement. Do others have the same negative reaction I do, or is this an accepted convention that I am misinterpreting due to lack of familiarity? In the former case, what are better ways of expressing the sentiment?