Fixed bug related to render_problems entry in cache. added function to escape % symbols in equations only