fix stripspace and use index-filter

still takes awhile (after all we cat each text file everytime it is
modified), but much better than before. also binaries are no
longer corrupted.