code: public static String decode(String value, Charset charset) {
  		try {
  			return URLDecoder.decode(value, charset.name());
  		}
  		catch (UnsupportedEncodingException ex) {
  			throw new IllegalArgumentException("Characterset is not supported.");
  		}
  	}
docs: Uses URLDecoder to decode a application/x-www-form-urlencoded string, using the given Charset.