public static String encodeString(String str) {
		String newStr = null;
		try {
			if (str == "") {
				return null;
			} else {
				return new String(str.getBytes("UTF-8"), "UTF-8");
			}
		} catch (Exception e) {
			return null;
		}
	}