Use config charset when converting preprocessor script result to string