Strip leading UTF-8 BOM from HTML when checking for presence of doctype