CS-4637: add sql with packages encoding fix