public String convertToString(HashMap map) {
		StringBuffer buf = new StringBuffer();
		
		Iterator it = map.keySet().iterator();
		
		while (it.hasNext()) {
			String key = (String) it.next();
			String value = (String) map.get(key);
			
			try {
				buf.append(URLEncoder.encode(key, "UTF-8"));
				buf.append(DELIMITER_MINOR);
				buf.append(URLEncoder.encode(value, "UTF-8"));
				
				if (it.hasNext()) {
					buf.append(DELIMITER_MAJOR);
				}
			} catch (UnsupportedEncodingException uee) {
				uee.printStackTrace();
			}
		}
		
		return buf.toString();
	}