fix source lookup encoding