Factor duplicated character escape logic.
Add documented escapes.
Add remaining C-style escapes.