Problema com chat

Olá,

Estou com dois problema em uma aplicação desktop que envia mensagens para uma aplicação web.

Esse é o botão envia:

public String getChatMessage() {
        return jTextArea2.getText();
    }
    
    public String getUsername() {
        return jTextField2.getText();
    }   
    
    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {                                         
    // TODO add your handling code here:
        String chatMessage = this.getChatMessage();
        
        if (chatMessage == null || chatMessage.trim().equals("")) {
            final ProgressDialog pd = new ProgressDialog(this, true);
            pd.init(true);
            pd.setTitle("teste");
            JOptionPane.showMessageDialog(pd, "Você não digitou a mensagem!", "Erro", JOptionPane.WARNING_MESSAGE);            
        } else {
            try {
                ResourceBundle bundle = ResourceBundle.getBundle("dmdrec_config");
                long presentationID = this.getPresentationID();
                String apresentador = this.getUsername();
                String host = bundle.getString("server.uri.presentation.slides.send")+"?" +
                        "AC=2&presentationID=" + presentationID + 
                        "&question=" + unHTMLfy(chatMessage) + 
                        "&username=" + apresentador + "";
                int port = 7070;
                String url = null;
                try {
                    url = "http://dmdcpqd.cpqd.com.br:"+ port + host;
                } catch(MissingResourceException e) {
                    e.printStackTrace();
                    url = "http://dmdcpqd.cpqd.com.br:"+ port + host;
                }
                HttpURLConnection conn = (HttpURLConnection) new URL(url).openConnection();
                conn.setRequestProperty("User-agent", "DMDRecorder");
                conn.setRequestMethod("POST");
                conn.connect();
                System.out.println("Reset request: " + conn.getResponseCode());
                conn.disconnect();
                jTextArea2.setText(null);
            } catch(Exception e) {
                e.printStackTrace();
            }
        }
    }     

Mas sempre que dou um enter e tento enviar não consigo, como resolvo isso?

Outra problema, é p envio de caracteres especiais, estou usando essa função:

 private String unHTMLfy(String s) {
            String str = s.replaceAll("<span class=\"msg_sender\">", "").replaceAll("</span>", "").replaceAll("<br>", "\n");
        str = str.replaceAll("&atilde;", "ã").replaceAll("&otilde;", "õ").replaceAll("&ntilde;", "ñ");
        str = str.replaceAll("&aacute;", "á").replaceAll("&eacute;", "é").replaceAll("&iacute;", "í");
        str = str.replaceAll("&oacute;", "ó").replaceAll("&uacute;", "ú").replaceAll("&yacute;", "ý");
        str = str.replaceAll("&acirc;", "â").replaceAll("&ecirc;", "ê").replaceAll("&ocirc;", "ô");
        str = str.replaceAll("&icirc;", "î").replaceAll("&ucirc;", "û");
.
.
.

Está correto?

Vinicius.