fix the way getting encoding

For some non-standard web pages, the key might be content-type, or
Content-type, or whatever else combinations
try to import urllib when urllib.request not found

This is for running under Python2