Simplified: implementation using rgrove/sanitize gem.