fix(core): fix wrong encoding