public static String urlEncode(String paramString) {
		if (paramString == null) {
			return null;
		}
		try {
			String str = URLEncoder.encode(paramString, Constants.DEFAULT_ENCODING);
			return str.replaceAll("\\+", "%20");
		} catch (UnsupportedEncodingException localUnsupportedEncodingException) {
			throw new BCSClientException("Unable to encode path: " + paramString, localUnsupportedEncodingException);
		}
	}