Added support for generating html chars