io: Fix memory leaks of encoding handler in error cases xmlOutputBufferCreate* must always free the encoding handler.