Improved escaped character formatting in docs