XWIKI-9830: XAROutputWikiStream: attachments are truncated after 4096 bytes

 * buffer size is now a multiple of three, avoiding the issue