If you really don't care about the content:
str.gsub(/[\x80-\xff]/,'?')
-- 
Posted via http://www.ruby-forum.com/.