Fixed handling of text files and fixed #62 about mispresenting the DOM as GZipped content.