There is a simple solution for this. Open the icon in ms paint, and then save it again as a jpeg image. That always works but i don't quite know why.