set encoding to handle european characters. Fixes #424