better method is http://www.ruby-doc.org/core-2.1.1/String.html#method-i-scrub