CAMEL-7209 Fixed the issue that NIOConverter.toByteArray return bad data with thanks to Radek
CAMEL-7209 Fixed the unit test failure of XmlConverterTest
CAMEL-7213 NIOConverter need to call flip() when we put something into the buffer