StandardCharsets.UTF_8 on lower API lower than 19

Use forName static method of Charset class:

byte[] postData = urlParameters.getBytes(Charset.forName("UTF-8"));

List of standard charsets you can find in documentation.