refactor ascii character encoding. solid escaped char, inline pre, block pre sample, block pre code