fixed #100 by explictly setting encoding (credit to breunigs)

Fixes #100.