fix UnicodeEncodeError: 'ascii' codec can't encode character

as described in #29 (see commit e1ec825)