speed up text conversion in preprocessor