fix encode bug, update repositories