Remove unnecessary branch from #_encodeValue