They do sell spray cans of gasket remover. I can"t say that I have used them very much.
On heads and blocks if you can get access. I scrape off all I can and then wrap 80 grit sandpaper around a file ( be careful and try to keep it flat to the surface ) and then use it to final clean up the surface. This also removes any burrs or high spots too.