public static byte[] toBytes(String x){
  try {
    return x.getBytes(PngHelperInternal.charsetLatin1name);
  }
 catch (  UnsupportedEncodingException e) {
    throw new PngBadCharsetException(e);
  }
}

public static byte [ ] toBytes ( String x ) { try { return x . getBytes ( PngHelperInternal . charsetLatin1name ) ; } catch ( UnsupportedEncodingException e ) { throw new PngBadCharsetException ( e ) ; } }
converts to bytes using latin1 ( iso - 8859 - 1 )
