use utf-8 by default, use xmlcharrefreplace for any additional characters
0.2.1