add docs, and encoding/flags management method on Escaper
add docs and tests
modify EscaperFactory and add docs