Fixes encoding errors for issue #191.
Merge pull request #193 from snorfalorpagus/encoding

Fixes encoding errors for issue #191.