make sure error messages from api is pure text

close #3