private String encodeString(String string) {
		try {
			return URLEncoder.encode(string, "UTF-8");
		} catch(UnsupportedEncodingException e) {
			Log.getLogger().log(Level.WARNING, "Could not encode \"" + string + "\" with UTF-8.");
			return string; 
		}
	}