Adding self-diagnostics for UTF-8 support.