encode strings in a way that m2secret would like
Merge pull request #4 from andymckay/unicode

raise a meaningfull error on ascii encoding