https://github.com/ilyakurdyukov/jpeg-quantsmooth (good for most mid-quality and high-quality images)
https://github.com/victorvde/jpeg2png (use for very low-quality images, slower)
jpeg-quantsmooth gives a sharper output (use "-q6" option).
jpeg2png output is a little blurry, but it does a better job of unblocking very low-quality images.