Restore encoding of json