def cleanup(x) s = x.read return x.gsub(/BAD_CHARS/, '') end