sanitize pty options