string_cleaner

Just add a method .clean to String which does:

Supports only Ruby 2.6+

Install

sudo gem install string_cleaner

Example usage

"\210\004".clean # => " "

Copyright © 2009 Joseph Halter. See LICENSE for details.