Fix transcode_char_start logic for choosing buffer.
Clean up resume logic and remove several unnecessary states.
Fixes for buffer transfer of incomplete transcoding phase.
Use actual writebuf length.
Be a bit less wasteful allocating temp buffer for hex insertion.
Well it is!