title: Powershell String Replace Strange behaviour with umlauts
body: <p>I have a strange behaviour of the Powershell String -Replace Function.</p>
  
  <p>My Code looks like this:</p>
  
  <pre><code>$lastname = $lastname -replace "ü","ue" 
  $lastname
  Enable-Mailbox -Identity &lt;DistiguishedName&gt; -Alias ($firstname + "." + $lastname)
  $lastname
  $lastname.Length
  </code></pre>
  
  <p>The -Alias Parameter of <code>Enable-Mailbox</code> gives me the error that I have a non-working char in my <code>$lastname</code>.</p>
  
  <p>But the Output Actually looks like this:
  <img src="https://i.stack.imgur.com/uY4JR.png" alt="Output With Error-Code"></p>
  
  <p>I think it cant be the Enable-Mailbox Statement because its working with non Umlaut-Names.
  Why should the variable have the right value and length and then when I pass it to a command be another?</p>
  
  <p>Greetings </p>