Fix encoding of downloaded lib