fixed bug with encoding in scg2sc