Fix for RT ticket 100311: real UTF-8 strings.

Still need to check and fix the eg scripts.
Fix RT ticket 100311 also in the eg/ directory