Replace '.' to '_' in generating toc anchor id