ULG PATCH: Fix render() encoding