keep encoding out of util
pep8ify