Fix ability of writeImage() to use 8-bit characters in labels

The only change here is to explicitly getBytes() with UTF-8 encoding for the ByteArrayInputStream for the parser to deal with.  This allows character like mu (µ) to be used for the text label on images.  Without this, one gets a parsing error...