test for error if no charset could be set