Raise a useful error message on str. Fixes #23
Merge pull request #24 from alex/unicode-error

Raise a useful error message on str. Fixes #23