fix error on basic encode function : parse key as Utf8