Issue with encoding in TypeScript code - Effect Community