Better HTML vs XML detection
Fix content-type detection
More unicode warnings avoiding