Replace codecs.open with io.open to fix Windows.

codecs.open will not work in Plex under Windows. Using io.open instead.
Remove commented out code
Merge pull request #1 from srazer/master

Replace codecs.open with io.open to fix Windows.