Fix unescaped backslash in file and image TV

Fix for #9526: http://tracker.modx.com/issues/9526

(cherry picked from commit e3dcab239578ac466667ab72ddbcb4f5f0f23fe5)