Convert memory streams to the byte[] before passing it to roslyn