use utf-8 encoding for json

@karlitschek @bartv2 @DeepDiver1975 @icewind1991 @blizzz