Handle out of ISO-8859-1 characters

This is something of a kludge but everything short of converting it all
to UTF-8 is going to be. This at least seems to handle most of what is
likely to be thrown at it without breaking anything.
Replace tabs with spaces

Also remove whitespace and end of lines