code: public static String encodeFromString(String plain, String charset) throws CoderException, UnsupportedEncodingException {
  	return encode(plain.getBytes(charset));
      }
docs: encodes a String to Base64 String
  
  @param plain String to encode
  @return encoded String
  @throws CoderException
  @throws UnsupportedEncodingException