Filter out '\0' for wincurse, because unprintable characters causes deadly slowdown.