Sanitize string before passing it to wxpython widget to avoid SEGFAULT
 Template for G0W0 convergence studies.