Fix title handling in HTML builder.