Fixed encoding error

Fixes #4