Escape some arbitrary file contents (assumes it's a string) and print it out into a "variable safe" format.