error using encoding keyword on windows.

avoid the error
TypeError: 'encoding' is an invalid keyword argument for this function
Merge pull request #1 from abdelouahabb/patch-1

error using encoding keyword on windows.