added logging line for string char evaluation and encoding (commented by default)