assume incoming text is utf8, not latin1
Merge pull request #20 from doy/master

encoding fixes