Encode xml characters

Without creating a config option, this should resolve https://github.com/gridonic/hapi/issues/4.