fix encofing