added prettyPrint, utf-8 encoding