Unicode Custom Snap

Hi, I am trying to get the output of the Json in my custom snap.
http://developer.snaplogic.com/#reading-documents-from-an-input-view
But I get question marks instead of special characters (ÖÄ) in Document class. How can I make it use the correct encoding?