test for error if no charset could be set
typofix
typofix2

... this is awkward.
fix error propagation
add test for invalid charset
Merge pull request #44 from arnehormann/master

test for thrown error when no charset could be set