Extracted control char sanitization to module level and applied to shared strings table output.
whitespace and debug cleanup