Refactored symbol name mangling code.
Refactored symbol name mangling code.

vsedach/Parenscript,JDReutt/parenscript,fredericksilva/Parenscript,VincentToups/parenscript,3b/parenscript,manuel/parenscript