Handles HTML tables better and links to filenames containing spaces