Try to detect encoding only for HTML (default UTF-8)