title: '\n' and '\r' recognized as 2 characters instead of 1
body: <p>I got a null terminated buffer (filled using 'read' syscall) with the following content:</p>
  <pre><code>GET / HTTP/1.1\r\nHost: 127.0.0.1\r\n\r\n
  </code></pre>
  <p>I'm trying to replace <code>\r</code> and <code>\n</code> characters by <code>*</code> characters, but when I loop the buffer the characters aren't modified.</p>
  <pre><code>for (long i = 0; i &lt; bytes_read; i++) {
    if (buffer[i] == '\r' || buffer[i] == '\n')
        buffer[i] = '*';
  }
  </code></pre>
  <p>Where 'bytes_read' is the amount of bytes returned by 'read' syscall.</p>
  <p>But there buffer isn't modified, and if I print it character by character, '\r' and '\n' are print as '' and 'r'.</p>
  <p>What could be the problem?</p>