fixing encoode