title: Convert encoding of TMemoryStream to utf8
body: <p>I have a file opened in <code>TMemoryStream</code>. Its current encoding can be ANSI or UTF8 with BOM. I have to convert the encoding of <code>TMemoryStream</code> to <code>UTF8</code>. How do I do that?</p>