~1-2% improvement by reusing a buffer instead of calling ToCharArray() every time.
~5% improvement by rewriting scan_to_closing_backticks