resolves #504 sanitize contents of HTML title element in html5 backend

- also use 'Untitled' for HTML title when doctitle is nil