I'd rather see all this code in a separate file in the minerr directory. utils.js is becoming this kitchen sink file already and this code is big enough to warrant it's own file.

this new file should then be loaded by plugins.js and it should be used to register the strip-errors task