Improve encoding performance to be approximately equal to encoding/json.
(About 2-3% faster, due to not doing reflection.)