Changing some letters in entry's uri before save it I need to replace some characters in my entry's URI because we have some letters which do not exist in English like "ş" or "ç". It is a problem for SEO and we have to change each time manually. I tried something with entries.onBeforeSaveEntry but I couldn't solve the problem. I'm confused with getting URI and set the new URI. Any suggestion?
I solved like this, maybe any of you will use with different types of it.

craft()-&gt;on('entries.onBeforeSaveEntry', function(Event $event) {
  $entry = $event-&gt;params['entry'];
  $turkishCharacters = ['ı', 'ü', 'ö', 'ş', 'ç', 'ğ'];
  $englishCharacters = ['i', 'u', 'o', 's', 'c', 'g'];

  $entrySlug = $entry-&gt;slug;
  $entrySlug = str_replace($turkishCharacters, $englishCharacters, $entrySlug);     
  $entry-&gt;slug = $entrySlug;
});