extract title from HTML

for parity with Perl's CGI module:
http://perl.about.com/od/cgiweb/a/perlcgipm.htm