define UTF-8 encoding
writeEntityDocument methode to reduce code redundance
linebreaks after each document