fix thread safety of *PADDING*

Running PARSE-STRING-AND-PRINT-TO-STREAM in multiple threads can
interfere for each other.
handle escaped characters from extensions properly

fixes #10