fixed some bugs with the date, mixing strings/numerics.
cleaned up output slightly, strip some chars from filename, convert some html.
added original filename to end of file (mostly for debug)
removed some more bad chars from title and tags.