Only automatically replace characters when the current document is