Added support for UTF values and XML escape codes in CharSerializer.