code: public void put(String data,Charset charset) throws APIException {
          HttpResponse response = client.put(getUrl(), new StringEntity(data, charset));
          HttpClientHelpers.throwIfNotOk(response);
      }
docs: Upload string data to this file as text using a custom Charset
  @param data the data to upload
  @throws APIException if there were any problems communicating with the Algorithmia API