improving enconding definition

read http://www.python.org/dev/peps/pep-0263/