Bug: Remove tail calls on ByRef functions

Found whilst working on Jil, after changing the _WriteEncodedString* functions to take the "ref char[] buffer". It caused a few of the Jil tests to fail in the test suite when run in debug build (although they passed if you tried to debug them, and they ran fine in the release build test suite.)