public static String convertToURI(String playerURL){
  int index=playerURL.indexOf('|');
  StringBuilder sb=new StringBuilder(playerURL);
  while (index > 0) {
    sb.setCharAt(index,':');
    index=playerURL.indexOf('|',index + 1);
  }
  return sb.toString();
}

public static String convertToURI ( String playerURL ) { int index = playerURL . indexOf ( '|' ) ; StringBuilder sb = new StringBuilder ( playerURL ) ; while ( index > 0 ) { sb . setCharAt ( index , ':' ) ; index = playerURL . indexOf ( '|' , index + 1 ) ; } return sb . toString ( ) ; }
the player sends us a uri using ' | ' instead of ' : '
