Added support for XML character reference