code: public static String encodeString(String s)
  	{
  		if (s != null && s.length() != 0)
  		{
  			try
  			{
  				final byte[] encode = Base64.encode(s.getBytes(DATA_ENCODING));
  				return new String(encode, BYTE_ENCODING);
  			} catch (UnsupportedEncodingException e)
  			{
  				VdmDebugPlugin.log(e);
  			}
  		}
  		return EMPTY;
  	}
docs: $NON-NLS-1$