Escape arbitrary messages.

This sometimes includes filenames.