A fork from STWebArchiver originally written by Shun Takebayashi