title: PHP Clean Odd Characters from String
body: <p>I'm receiving some information using sockets
  But it gets some garbage depending the client and the OS.</p>
  
  <p>Example : Receiving "Hello" string</p>
  
  <pre><code>ÿþ^Xÿþ^_ÿþ ÿþ!ÿþ"ÿþ'ÿü^Eÿþ#Hello
  </code></pre>
  
  <p>That gets stored in a $msg variable. How can i clean it up from those strange characters?.
  (The characters varies from msg to msg).</p>
  
  <p>Thanks in advance</p>