Fix encoding issue #134 with backwards compatibility to ST2

Use codec.open for ST2 compatibility.

Fix from http://stackoverflow.com/questions/10971033/backporting-python-3-openencoding-utf-8-to-python-2