Multipart writer fixes:

* Simplify read() to be more efficient
* Rework read(byte[]) so it doesn't call available()
* Check result of AddImageAttachmentTest against known good output
  This uses % as a special metacharacter which stands for 'any character'