I have a URI that contains non-ASCII characters like :
http://www.abc.de/qq/qq.ww?MIval=typo3_bsl_int_Smtliste&p_smtbez=Schmalbl�ttrigeSomerzischeruchtanb
yourstring=yourstring.replaceAll("[^\\p{ASCII}]", "");