sanitizer script from http://pastethis.i2p/show/1532/