Allow an optional file encoding (codec)
add test for encoding
add docstring for encoding argument
Merge pull request #7 from toddw-as/patch-1

Allow an optional file encoding (codec).