Remove strange characters from curses file