MKV playback on Samsung LED TV.

I have a 32 inch series 5 LED smart TV UA32D5900VR. Before buying I did complete research about the playback capabilities and Samsung came out to be winner but, when now during its actual usage I found the following missing capability.
It does not play MKV files through network.
I found solution for all the samsung LED TV’s and its just a simple trick of renaming mkv to avi file.
Thats it!