code: public void writeUTFAsArray(String str) throws IOException {
  		byte[] buffer = str.getBytes("UTF-8");
  		super.writeInt(buffer.length);
  		super.write(buffer, 0, buffer.length);
  	}
docs: This method uses the {@link String#getBytes(String)} method to write
  <ol>
  <li>the size of the byte array</li>
  <li>the unicode byte sequence of this string</li>
  </ol>
  
  @param str
  String to be written in the output stream
  @throws IOException