Escape all required characters

Tests will be needed for each of these; I'll break out into a separate
'escape' file for testing all of them.