Changed a couple of functor sprints to use sprint_quotedname, so we won't have problem with errors for predicates whose names have escapes in them.
Authored by: tswift 2014-12-31
Parent: [r8208]
Child: [r8210]